| Author |
Thread Statistics | Show CCP posts - 4 post(s) |
|

CCP FoxFour
C C P C C P Alliance
3275

|
Posted - 2014.05.30 13:59:00 -
[1] - Quote
There are a few ways to go about this, some of which depends on what language you are using. While a yes a mess the API is pretty easy once you get a grasp of it, it's even easier if you use an existing library.
First you will need an API key for the character that gives access to Mail Bodies and Mail Messages I believe are the two required access masks.
If you are using Python I highly recommend using the evelink library found here: https://github.com/eve-val/evelink
If you do that you should be able to simply do the following:
============================ # Imports import evelink.api import evelink.char
# Setup API and Character objects api = evelink.api.API(api_key=(keyID, vCode)) char = evelinke.char.Char(char_id=charID, api=api)
# Print mail headers print char.messages =============================
Each mail header should contain an ID, use that ID to get the message body with:
char.message_bodies(message_ids='comma,delimited,string,of,ids'))
You may have to double check how the evelink API works for list of ids, I think it's comma delimited string but I could be wrong.
If you are using PHP check out phealng: https://github.com/3rdpartyeve/phealng
I don't know PHP though so /shrug
I am in the process of putting together some better documentation, it's still very new but you can check it out here: https://wiki.eveonline.com/en/wiki/Third_Party_Developers CCP FoxFour // Game Designer // @regnerba
|
|
|

CCP FoxFour
C C P C C P Alliance
3275

|
Posted - 2014.05.30 14:43:00 -
[2] - Quote
Solecist Project wrote:Yongtau Naskingar wrote:Solecist Project wrote:It says that I can only retrive new mails every half hour?
Is this accurate?! Most API things aren't really useful for real time things, I tried to do something with contracts some time and that had a 'once per hour' limit at the time too. Crap. Crapcrapcrap. I'll send you 20Mill for the proper response above though.
May I ask what you are trying to achieve? CCP FoxFour // Game Designer // @regnerba
|
|
|

CCP FoxFour
C C P C C P Alliance
3276

|
Posted - 2014.05.30 16:20:00 -
[3] - Quote
Solecist Project wrote:CCP FoxFour wrote:Solecist Project wrote:Yongtau Naskingar wrote:Solecist Project wrote:It says that I can only retrive new mails every half hour?
Is this accurate?! Most API things aren't really useful for real time things, I tried to do something with contracts some time and that had a 'once per hour' limit at the time too. Crap. Crapcrapcrap. I'll send you 20Mill for the proper response above though. May I ask what you are trying to achieve? Sure! Is there a more private way I can tell you? This is EVE... I rather not share it in public, but you seem trustworthy... xD
EVE mail works fine. :) CCP FoxFour // Game Designer // @regnerba
|
|
|

CCP FoxFour
C C P C C P Alliance
3278

|
Posted - 2014.06.01 10:01:00 -
[4] - Quote
Hel O'Ween wrote:[Slightly OT] Not sure if that's still the case, but " once upon a time, in the void beginning of the API", the recommended way of accessing the API was HTTP POST. While GET did/does work, it was meant for manual testing (i.e. am I providing the right parameters) ... or so, I was told.
There are a few people say this, I really need to track down why that is. We have better logging on our end for GET so I would prefer you guys use GET. I will ask around on Monday and see if I can track down where this came from. CCP FoxFour // Game Designer // @regnerba
|
|
| |
|